﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace ArmyCreator.Controls
{
    public partial class ScouadControl : UserControl
    {
		private DetailStates state = DetailStates.LowState;
		public enum DetailStates {LowState, FullState}
		
        public ScouadControl()
        {
            InitializeComponent();
			VisualStateManager.GoToState(this, state.ToString(), true);
        }

        private void ToggleDetail(object sender, System.Windows.Input.GestureEventArgs e)
        {
			this.state = state.Equals(DetailStates.LowState) ?DetailStates.FullState :DetailStates.LowState;
			VisualStateManager.GoToState(this, state.ToString(), true);
        }
    }
}
